home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / dskut / aspisrc.zip / MAKEFILE < prev    next >
Text File  |  1992-01-26  |  10KB  |  353 lines

  1. # Makefile for GNU tar program.
  2.  
  3. SHELL = /bin/sh
  4.  
  5. # In order to disable remote-tape support, add -DNO_REMOTE to the
  6. # appropriate DEFS line, and remove rtape_lib.* from LOCAL_{SRC,OBJ}
  7. # For Ultrix 3.1, you will have to compile rtape_lib.c with -DUSG.
  8. # Add -DUSE_REXEC to use rexec for remote tape operations
  9. # instead of forking rsh or remsh.
  10. #
  11. # If tar fails to properly print error msgs, or core-dumps doing same,
  12. # you may need to change which version of msg...() you are using.
  13. # To do so, add one of the following to your DEFS= line
  14. # -DSTDC_MSG        If you are using an ANSI compiler, and have vfprintf().
  15. # -DVARARGS_MSG        If you have varargs.h and vfprintf()
  16. # -DDOPRNT_MSG        If you have _doprnt(), and no useful varargs support
  17. # -DLOSING_MSG        If nothing else works.
  18. #
  19. # Some non-BSD systems may have to add -DNEED_TZSET in order to have getdate.y
  20. # compile correctly.
  21. #
  22. # If you have a system V system which defines size_t, add -DHAVE_SIZE_T.
  23. # If you have a system which defines strstr, add -DHAVE_STRSTR.
  24. #
  25. # If you can't use remote tar with the rmt library, you can still get
  26. # some stuff to work right by adding -DUSE_REXEC.
  27. #
  28. # Some people's systems define a prototype for signal handlers which
  29. # require them to be declared as void.  If you get such problems in
  30. # rtape_lib, function command, then define -DSIGNAL_VOID.  
  31. #
  32. # getdate.y has 8 shift/reduce conflicts.
  33. #
  34. # In addition to setting DEFS appropriately for your system, you might
  35. # have to hand edit the #defines and #undefs in port.c.
  36. #
  37.  
  38. ## GNU version
  39. #DEFS = -DBSD42
  40. #LOCAL_SRC = 
  41. #LOCAL_OBJ = 
  42. #LDFLAGS =
  43. #LIBS =  -lutils
  44. #LINT = lint
  45. #LINTFLAGS = -abchx
  46. #DEF_AR_FILE = \"-\"
  47. #DEFBLOCKING = 20
  48. #O = o
  49.  
  50. ## Berserkeley version
  51. #CC=gcc
  52. #DEFS = -DBSD42
  53. #LOCAL_SRC = getdate.y  rtape_lib.c
  54. #LOCAL_OBJ = getdate.$O rtape_lib.$O
  55. #LDFLAGS =
  56. #LIBS =
  57. #LINT = lint
  58. #LINTFLAGS = -abchx
  59. #DEF_AR_FILE = \"/dev/rmt8\"
  60. #DEFBLOCKING = 20
  61. #O = o
  62.  
  63. ## Ultrix
  64. #CC=gcc
  65. #DEFS = -DBSD42 -DSIGNAL_VOID
  66. #LOCAL_SRC = getdate.y  rtape_lib.c
  67. #LOCAL_OBJ = getdate.$O rtape_lib.$O
  68. #LDFLAGS =
  69. #LIBS =
  70. #LINT = lint
  71. #LINTFLAGS = -abchx
  72. #DEF_AR_FILE = \"/dev/rmt8\"
  73. #DEFBLOCKING = 20
  74. #O = o
  75.  
  76. # HPUX 7.0 version
  77. #DEFS = -DBSD42 -Dhpux -DVARARGS_MSG
  78. #LOCAL_SRC = getdate.y  rtape_lib.c 
  79. #LOCAL_OBJ = getdate.$O rtape_lib.$O alloca.$O
  80. #LDFLAGS =
  81. #LIBS = -lBSD 
  82. #LINT = lint
  83. #LINTFLAGS = -abchx
  84. #DEF_AR_FILE = \"/dev/rct/c3d0s2\"
  85. #DEFBLOCKING = 20
  86. #O = o
  87.  
  88. # IBM AIX version -- this saves "hidden" directories, but doesn't restore
  89. # them as hidden.  Add -Di386 for a PS/2.  If you don't have GCC, turn it off.
  90. # Some people think you need -lbsd, some don't.  Dunno.
  91. #CC=gcc
  92. #DEFS= -DUSG -Daix -DSTDC_MSG -DHAVE_MTIO -DHAVE_SIZE_T -DSIGNAL_VOID
  93. #LOCAL_SRC =  getdate.y rtape_lib.c
  94. #LOCAL_OBJ =  getdate.$O rtape_lib.$O
  95. #LDFLAGS =
  96. #LIBS = -lbsd
  97. #LINT = lint
  98. #LINTFLAGS = -p
  99. #DEF_AR_FILE = \"/dev/rmt0\"
  100. #DEFBLOCKING = 20
  101. #O = o
  102.  
  103. # USG version
  104. # Add -DNDIR to DEFS if your system uses ndir.h instead of dirent.h
  105. # Add -DDIRECT to DEFS if your system uses 'struct direct' instead of
  106. # 'struct dirent' (this is the case at least with one add-on ndir 
  107. # library)
  108. # Add -DHAVE_MTIO to DEFS if your system has sys/mtio.h and defines MTIOCTOP
  109. # Add -DDAYLIGHT_MISSING to DEFS if your system doesn't define the
  110. # external variable `daylight'.
  111. # Add -lndir to LIBS if your ndir routines aren't in libc.a
  112. # Add -lPW to LIBS if you don't compile with gcc (to get alloca)
  113. #DEFS = -DUSG -DSIGNAL_VOID #-DNDIR -DDIRECT -DHAVE_MTIO
  114. #LOCAL_SRC =  getdate.y rtape_lib.c
  115. #LOCAL_OBJ =  getdate.$O rtape_lib.$O
  116. #LDFLAGS =
  117. #LIBS = #-lndir -lPW
  118. #LINT = lint
  119. #LINTFLAGS = -p
  120. #DEF_AR_FILE = \"/dev/rmt8\"
  121. #DEFBLOCKING = 20
  122. #O = o
  123.  
  124. # UniSoft's Uniplus SVR2 with NFS
  125. #DEFS = -DUSG -DUNIPLUS -DNFS -DSVR2 -DSIGNAL_VOID
  126. #LOCAL_SRC =  getdate.y rtape_lib.c
  127. #LOCAL_OBJ =  getdate.$O rtape_lib.$O
  128. #LDFLAGS =
  129. #LIBS = -lndir
  130. #LINT = lint
  131. #LINTFLAGS = -bx
  132. #DEF_AR_FILE = \"/dev/rmt8\"
  133. #DEFBLOCKING = 20
  134. #O = o
  135.  
  136. # MASSCOMP version
  137. #CC = ucb cc
  138. #DEFS = -DBSD42
  139. #LOCAL_SRC =  getdate.y rtape_lib.c
  140. #LOCAL_OBJ =  getdate.$O rtape_lib.$O
  141. #LDFLAGS =
  142. #LIBS = 
  143. #LINT = lint
  144. #LINTFLAGS = -bx
  145. #DEF_AR_FILE = \"/dev/rmt0\"
  146. #DEFBLOCKING = 20
  147. #O = o
  148.  
  149. # (yuk) MS-DOS (Microsoft C 4.0) version
  150. #MODEL = S
  151. #DEFS = -DNONAMES -A$(MODEL) -DNO_REMOTE
  152. #LOCAL_SRC =  getdate.y rtape_lib.c
  153. #LOCAL_OBJ =  getdate.$O rtape_lib.$O
  154. #LDFLAGS =
  155. #LIBS = $(MODEL)dir.lib
  156. #LINT =    $(CC)
  157. #LINTFLAGS = -W3
  158. #DEF_AR_FILE = \"tar.out\"
  159. #DEFBLOCKING = 20
  160. #O = obj
  161.  
  162. # (Yeah!) MS-DOS (Microsoft C 5.1) version
  163. # if you don't want the aspi functions just remove the -DASPI from the
  164. # DEFS line and the aspi.c and aspi.$O from LOCAL_SRC & LOCAL_OBJ
  165. #CC = cl
  166. MODEL = M
  167. DEFS = -nologo -DNONAMES -D__MSDOS__ -A$(MODEL) -DNO_REMOTE -DASPI
  168. LOCAL_SRC =  getdate.c  aspi.c
  169. LOCAL_OBJ =  getdate.$O aspi.$O
  170. LDFLAGS =
  171. LIBS = $(MODEL)dir.lib
  172. LINT = $(CC)
  173. LINTFLAGS = -W3
  174. DEF_AR_FILE = \"tar.out\"
  175. # for the next line see the file ASPI.DOC
  176. DEFAULT_TAPE_ID = \"0:4:0\"
  177. DEFBLOCKING = 20
  178. O = obj
  179.  
  180. # V7 version
  181. # Pick open3 emulation or nonexistence.  See open3.h, port.c.
  182. ##DEFS = -DV7 -DEMUL_OPEN3 -Dvoid=int
  183. ##DEFS = -DV7 -DNO_OPEN3 -Dvoid=int
  184. #LOCAL_SRC =  getdate.y rtape_lib.c
  185. #LOCAL_OBJ =  getdate.$O rtape_lib.$O
  186. #LDFLAGS =
  187. #LIBS = -lndir
  188. #LINT = lint
  189. #LINTFLAGS = -abchx
  190. #DEF_AR_FILE = \"/dev/rmt8\"
  191. #DEFBLOCKING = 20
  192. #O = o
  193.  
  194. # Minix version
  195. # No lint, so no lintflags.  Default file is stdin/out.  (Minix "tar"
  196. # doesn't even take an "f" flag, it assumes argv[2] is the archive name!)
  197. # Minix "make" doesn't expand macros right, so Minix users will have
  198. # to expand CFLAGS, SRCS, O, etc by hand, or fix your make.  Not my problem!
  199. # You'll also need to come up with ctime(), the directory
  200. # library, and a fixed doprintf() that handles %*s.  Put this stuff in
  201. # the "SUBSRC/SUBOBJ" macro below if you didn't put it in your C library.
  202. # Note that Minix "cc" produces ".s" files, not .o's, so O = s has been set.
  203. #
  204. # Pick open3 emulation or nonexistence.  See open3.h, port.c.
  205. ##DEFS = -DV7 -DMINIX -DEMUL_OPEN3
  206. ##DEFS = -DV7 -DMINIX -DNO_OPEN3
  207. #LOCAL_SRC =  getdate.y rtape_lib.c
  208. #LOCAL_OBJ =  getdate.$O rtape_lib.$O
  209. #LDFLAGS =
  210. #LIBS =
  211. #DEF_AR_FILE = \"-\"
  212. #DEFBLOCKING = 8    # No good reason for this, change at will
  213. #O = s
  214.  
  215. # Xenix version
  216. #DEFS = -DUSG -DXENIX -DSIGNAL_VOID
  217. #LOCAL_SRC =  getdate.y rtape_lib.c
  218. #LOCAL_OBJ =  getdate.$O rtape_lib.$O
  219. #LDFLAGS = 
  220. #LIBS = -lx
  221. #LINT = lint
  222. #LINTFLAGS = -p
  223. #DEF_AR_FILE = \"/dev/rmt8\"
  224. #DEFBLOCKING = 20
  225. #O = o
  226.  
  227. # SGI 4D version
  228. # You will need to define NEED_TZSET in getdate.y
  229. #DEFS = -DUSG -I/usr/include/bsd
  230. #LOCAL_SRC = getdate.y rtape_lib.c
  231. #LOCAL_OBJ =  getdate.$O rtape_lib.$O
  232. #LDFLAGS = 
  233. #LIBS = -lxmalloc
  234. #LINT = lint
  235. #LINTFLAGS = -p
  236. #DEF_AR_FILE = \"/dev/tape\"
  237. #DEFBLOCKING = 20
  238. #O = o
  239.  
  240. #CC = gcc
  241. #TARGET_ARCH = 
  242.  
  243. CFLAGS = $(COPTS) $(ALLDEFS)
  244. ALLDEFS = $(DEFS) \
  245.     -DDEF_AR_FILE=$(DEF_AR_FILE) \
  246.     -DDEFBLOCKING=$(DEFBLOCKING)
  247. # next line for Debugging
  248. #COPTS = -g
  249. # next line for Production
  250. COPTS = -Ox -G2s
  251.  
  252. # Add things here like readdir that aren't in your standard libraries.
  253. # (E.g. MSDOS needs msd_dir.c, msd_dir.obj)
  254. SUBSRC= msd_dir.c
  255. SUBOBJ= msd_dir.$O
  256.  
  257. # Destination directory and installation program for make install
  258. bindir = /usr/local/gnubin
  259. INSTALL = cp
  260. RM = rm -f
  261.  
  262. SRC1 =    tar.c create.c extract.c buffer.c getoldopt.c update.c gnu.c mangle.c
  263. SRC2 =  version.c list.c names.c diffarch.c port.c wildmat.c getopt.c getopt1.c regex.c
  264. SRC3 =  $(LOCAL_SRC) $(SUBSRC)
  265. SRCS =    $(SRC1) $(SRC2) $(SRC3)
  266. OBJ1 =    tar.$O create.$O extract.$O buffer.$O getoldopt.$O list.$O update.$O
  267. OBJ2 =    version.$O names.$O diffarch.$O port.$O wildmat.$O getopt.$O getopt1.$O regex.$O
  268. OBJ3 =  gnu.$O mangle.$O $(LOCAL_OBJ) $(SUBOBJ)
  269. OBJS =    $(OBJ1) $(OBJ2) $(OBJ3)
  270. # AUX =    README PORTING Makefile TODO tar.h port.h open3.h \
  271. #    msd_dir.h msd_dir.c
  272. AUX =   README COPYING ChangeLog Makefile tar.texinfo tar.h port.h open3.h \
  273.     rmt.h msd_dir.h msd_dir.c rtape_server.c rtape_lib.c getdate.y \
  274.     getopt.h regex.h level-0 level-1 bac